﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Environment.cs" company="Anton Frattaroli">
//   Copyright (c) Anton Frattaroli. All rights reserved.
// </copyright>
// <summary>
//   Defines the Environment class.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace Lidocaine.Data
{
    using System;
    using System.Configuration;
    using Lidocaine.BusinessObjects;

    /// <summary>
    /// Defines the Environment class.
    /// </summary>
    public static class Environment
    {
        /// <summary>
        /// Stores the database connection string for this application.
        /// </summary>
        private static readonly string LidocaineConnectionString = ConfigurationManager.ConnectionStrings[((AppConfigSection)ConfigurationManager.GetSection("lidocaine/appConfig")).ConnectionStringName].ConnectionString;

        /// <summary>
        /// Gets the database connection string for the Lidocaine instance.
        /// </summary>
        public static string ConnectionString
        {
            get
            {
                return LidocaineConnectionString;
            }
        }
    }
}